# coding=utf-8
from fastapi import FastAPI
from 学生管理系统.Control import app01, app02, app03
import uvicorn


app = FastAPI(
    title="学生管理系统",
    description="管理学生的基本信息、成绩和就业情况",
    version="v0.0.1",
    contact={
        "name": "开发者",
        "email": "dev@example.com"
    }
)

# 挂载路由
app.include_router(app01, prefix="/students", tags=["学生信息管理"])
app.include_router(app02, prefix="/scores", tags=["学生成绩管理"])
app.include_router(app03, prefix="/employment", tags=["学生就业管理"])


if __name__ == '__main__':
    uvicorn.run('main:app', host='localhost', port=8003, reload=True)  # 允许外部访问